<section id="main">
	<!--<div class="row-fluid">
		<div class="span12">
			<hr class="main">
			<ul class="breadcrumbs">
				<li><?php echo $this->Html->link('Add site', array('action' => 'add'), array('class' => 'crumb')); ?>
			</ul>
			<hr class="main">
		</div>
	</div>-->
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<div class="box bordered">
					<div class="box inner white">
						<div class="row-fluid padded10">
							<div class="section-title"><?php echo $user['company']; ?> </div>
						</div>
						<div class="channels row-fluid">
						<!-- CONTENT -->
						<div class="actions">
								<ul class="nav nav-pills">
									<li><?php echo $this->Html->link('Add new site', array('action' => 'add'), array('class' => 'btn  dark-blue')); ?></li>
								</ul>
						</div>
							<table cellpadding="0" cellspacing="0" class="table">
								<thead>
									<tr>
										<th></th>
										<th><?php echo $this->Paginator->sort('name'); ?></th>
										<th><?php echo $this->Paginator->sort('average'); ?></th>
										<th class="actions"><?php echo __('Actions'); ?></th>
									</tr>
								</thead>
								<tbody>
									<?php foreach ($channels as $channel): ?>
									<tr>
										<td width="90px"><?php echo $this->Html->image($channel['Channel']['logo_mini'], array('url' => array('action' => 'view', $channel['Channel']['id']))); ?></td>
										<td><?php echo $this->Html->link($channel['Channel']['name'], $channel['Channel']['url'], array('target' => '_blank')); ?>&nbsp;
											<p><?php echo h($channel['Channel']['description']); ?></p></td>
										<td><?php echo h($channel['Channel']['average']); ?>&nbsp;</td>
										<td class="actions"><div class="btn-group">
												<button data-toggle="dropdown" class="btn dropdown-toggle">Actions <span class="caret"></span></button>
												<ul class="dropdown-menu pull-right">
													<li><?php echo $this->Html->link(__('View ads'), array('action' => 'view', $channel['Channel']['id']), array('class' => '')); ?></li>
													<li class="divider"></li>
													<li><?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $channel['Channel']['id']), array('class' => '')); ?></li>
													<li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $channel['Channel']['id']), array('class' => ''), __('Are you sure you want to delete # %s?', $channel['Channel']['id'])); ?></li>
												</ul>
											</div></td>
									</tr>
								</tbody>
								<?php endforeach; ?>
							</table>
							<p>
								<?php
							echo $this->Paginator->counter(array(
							'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
							));
							?>
							</p>
							<div class="paging">
								<?php
								echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
								echo $this->Paginator->numbers(array('separator' => ''));
								echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
							?>
							</div>
							<!-- END CONTENT -->
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>
